/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mygameframework.test;

import com.mygameframework.core.GeneralGameCore;
import java.awt.Frame;
import java.awt.Graphics2D;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 *
 * @author bill
 */
public class Root extends GeneralGameCore{
//    public int mapWidth=6000;
//    public int mapheight=6000;
//    public int mapWidth=2000;
//    public int mapheight=800;
//    public int mapWidth=600;
//    public int mapheight=600;

//    public int mapWidth=60;
//    public int mapheight=60;
    public int mapWidth=20;
    public int mapheight=20;
    private static int windowWidth=800;
    private static int windowHeight=600;
    @Override
    protected void createGameActions() {
        super.createGameActions();
    }

//    @Override
//    public void draw(Graphics2D g) {
//        super.draw(g);
//    }

    @Override
    public void init() {
        super.init();
        this.screensMachine.changeState(new SmoothCustomScene(this));
//        this.screensMachine.changeState(new CustomScene1(this));
        
//        this.screensMachine.changeState(new SlipMapScene(this));
//        this.screensMachine.changeState(new StaggeredMapScene(this));
//        this.screensMachine.changeState(new DiamondMapScene(this));

    }
    public static void main(String[] args) {
        Frame f = new Frame();
        f.setSize(windowWidth, windowHeight);
//        System.out.println(f.getInsets());
//        f.setVisible(true);
//        System.out.println(f.getInsets());
        Root r = new Root();
        r.setFrame(f);
        r.run();

    }
}
